<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="zozopo.user.operations.*" %>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
  <head>
    
    <title><s:property value="usermail"/> 用户详细信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    	
	<meta http-equiv="keywords" content="登陆,zozopo登陆,登陆zozopo">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
	<!--
	table {
	table-layout: fixed;
	word-wrap:break-word;
	}
	td{
		
		word-break:break-all;
	}
	BODY {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: arial,san serif
}
	//-->
</style>

  </head>
  
  <body>
  
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr>
  		<td valign="top" height="100">
  			<jsp:include page="/user/head.jsp"/>
  		</td>
  	</tr>
  	<tr>
  		<td valign="top">
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 <tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%"> 
    		<FONT size="6"></FONT> 
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
     		<jsp:include page="/search/searchbar.jsp"></jsp:include>
		  	<jsp:include page="/user/left.jsp"></jsp:include>
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" >
    	 <tr>
     		<td>
     	<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
     		<tr>
     			<td>QQ详细信息</td>
     		</tr>
     	</table>
     	</td>
     		</tr>
 <tr>
     		<td>
			<table align="left"  border="0"  cellspacing="0" cellpadding="0" >
				<tr>
					
					<td><FONT size="5"><s:property value="user.user_name"/></FONT></td>
					<td ></td>
					<td></td>
				</tr>
				
				<tr>
					
					<td>名称: <s:property value="nickname"/>
					<img alt="" src="<s:property value="figureurl"/>"/>
					
					<img alt="" src="<s:property value="figureurl_1"/>"/>
					<img alt="" src="<s:property value="figureurl_2"/>"/>
					
					
					</td>
					<td></td>
					<td></td>
				</tr>
				
				<tr>
					<td>性别:<s:property value="gender"/></td>
					<td ></td>
					<td></td>
				</tr>
				
			</table>
	</td>
     		</tr>
     		 <tr>
     		<td>
     		<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
     		<tr>
     			<td>创建新用户</td>
     		</tr>
     	</table>
		
     	</td>
     	</tr>
     	
     	
     		<tr>
     			<td><s:fielderror id="errormessage" /></td>
     		</tr>
     	
     	
     	<tr>
     		<td>
 		<form id="login" name="login" onSubmit="return true;" action="createuserbyqq.action" method="POST" >
     		
     		<table align="left" width="550" border="0" >
				
				
				<tr >
				
				  <td ><s:text name="background.login.username" />:</td>
				  <td><input type="text" name="username" id="username" value="<s:property value="nickname"/>"/>
				  	<button onclick="getUsernameInfo($('#username').val())">查验用户名称</button>
				  </td>
				  <td id="usernameinfo"></td>
			  </tr>
			
			<tr>
				 
				  <td><s:text name="background.login.password" />:</td>
				  <td><input type="password"" name="password" /> </td>
				  <td></td>
			  </tr>
			  
			  <tr>
				 
				  <td><s:text name="user.comfirmpassword" />:</td>
				  <td><input type="password" name="comfirmpassword" /> </td>
				  <td></td>
			  </tr>
			
				<tr>
				
				  <td><s:text name="background.login.valicode" />:</td>
				  <td><input type="text" name="valicode" /> </td>
				  <td width="150" id="valicodedisplay" name="valicodedisplay" align="left"></td>
			  </tr>
				<tr>
					
					<td></td>
					<td ></td>
					<td></td>
				</tr>
				<tr>
					
					<td><button type="submit" class="btn">&nbsp; <s:text name="user.createuser" /> &nbsp;</button></td>
					<td><a href="javascript:getVlicode();">看不清,换一个</a></td>
					<td ></td>
				</tr>
			</table>
     		</form>
     		</td>
     	
     	</tr>
     	
     	
     	</table>
	</td>
</tr>

</table>
  		</td>
  	</tr>
  	<tr>
  		<td valign="bottom">
  			<jsp:include page="/user/tail.jsp"></jsp:include>
  		
  		</td>
  	</tr>
  
  </table>
  </body>
   <script type="text/javascript">
  window.setTimeout(function(){document.getElementById('valicodedisplay').innerHTML='<img src="valicode.action"/>'},500);

  function getVlicode(){
	  document.getElementById('valicodedisplay').innerHTML='<img src="valicode.action"/>'
  }

  function getUsernameInfo(username){
		
		$.getJSON(encodeURI(encodeURI("checkusername.action?username=" + username)), function(data){ 
			//alert(data.responseText); 
			if(data != null){
				$('#usernameinfo').html(data.responseText);
	  		}
		});

		
	}
  
  </script>
  
 
</html>
